/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.barco.d2Api;

/**
 *
 * @author Huyu
 */
public class TestService {
    /*
    OVD2_WebServiceServiceStub webservice = new OVD2_WebServiceServiceStub("http://192.168.1.162:8080/BCMService/connect?wsdl");
 
        //wallserviceinfo
        GetWallServiceInfoE wallserviceInfoE = new GetWallServiceInfoE();
        GetWallServiceInfo  getWallInfo = new GetWallServiceInfo();
        wallserviceInfoE.setGetWallServiceInfo(getWallInfo);
        GetWallServiceInfoResponseE wallInfoR = webservice.getWallServiceInfo(wallserviceInfoE);
        Ovd2WallServiceInfo Ovd2WallServiceInfo = wallInfoR.getGetWallServiceInfoResponse().get_return();

        String WallSerName = Ovd2WallServiceInfo.getName();//控制PC名称
        String SoftVersion = Ovd2WallServiceInfo.getSoftwareVersion();//软件版本
        String ApiVersion = Ovd2WallServiceInfo.getAPIVersion();//api版本
        Ovd2Identity[] problems = Ovd2WallServiceInfo.getWallsHavingProblems();
 
        HealthState_type1 health = Ovd2WallServiceInfo.getHealthState();
        String healthStr = health.toString();

        HealthLevels level = Ovd2WallServiceInfo.getHealthSummary();
        String levelstr = level.toString();
        String levelValue = level.getValue();
//
        String uptime = Ovd2WallServiceInfo.getUptime();//运行时间
        String ProjectName = Ovd2WallServiceInfo.getProjectName();//项目名称
       
       


        Ovd2Identity[] wallIdens = Ovd2WallServiceInfo.getWalls();
        for (Ovd2Identity wall : wallIdens) {
              String wallId = wall.getId();
              int wallRow = wall.getRow();
              int wallCol = wall.getColumn();
              int wallType = wall.getType();
        }
        
        GetWallInfo  getWallinfo = new GetWallInfo();
        getWallinfo.setArg0(wallIdens);
        GetWallInfoE wallinfoE = new GetWallInfoE();
        wallinfoE.setGetWallInfo(getWallinfo);
       
       GetWallInfoResponseE wallinfoR = webservice.getWallInfo(wallinfoE);
       
        Ovd2WallInfo[] wallinfos = wallinfoR.getGetWallInfoResponse().get_return();
        for (Ovd2WallInfo wallinfo : wallinfos) {
           
 
            WallBrightnessLockModes lockModes= wallinfo.getBrightnessLockMode();
            String lockValue = lockModes.getValue();
            String city = wallinfo.getCity();
            HealthState_type2 healthState = wallinfo.getHealthState();
            HealthLevels healthlevels = wallinfo.getHealthSummary();
            int height = wallinfo.getHeight();
            Ovd2Identity id = wallinfo.getId();
            Ovd2Identity[] Problemides = wallinfo.getModulesHavingProblems();
            String WallName = wallinfo.getName();
            String WallOwer = wallinfo.getOwner();
            boolean SimFlag = wallinfo.getSimulated();
            int width = wallinfo.getWidth();
            
           // wallinfo.getc
            String a = "";
            
            Ovd2Identity[] moudleIdens = wallinfo.getModules();
            
            
            GetModuleInfo  modeInfo = new GetModuleInfo();
            modeInfo.setArg0(moudleIdens);
            GetModuleInfoE modeInfoE = new GetModuleInfoE();
            modeInfoE.setGetModuleInfo(modeInfo);
            //projector信息
            Ovd2ModuleInfo[] modeInfoList = webservice.getModuleInfo(modeInfoE).getGetModuleInfoResponse().get_return();
           // webservice.getModuleConfigInfo(null).getGetModuleConfigInfoResponse().get_return();
            for(Ovd2ModuleInfo  mInfo:modeInfoList){
                boolean AutoSaveFlag = mInfo.getAutoSaveEnabled();
                
                boolean AutoStartFlag = mInfo.getAutoStartEnabled();
                String  BusyStatus = mInfo.getBusyStatus();
                BrightnessColorLockModes colorMode =  mInfo.getColorBrightnessMode();
                String colorStr = colorMode.getValue();
                String DisplayStr = mInfo.getDisplayResolution();
                String FirmwareVersion = mInfo.getFirmwareVersion();
                HealthState_type0 Healthstate6 = mInfo.getHealthState();
                HealthLevels levels = mInfo.getHealthSummary();
                String levelsStr =  levels.getValue();
                int IuRuntime = mInfo.getIURuntime();
                String IuSNum = mInfo.getIUSerialNumber();
                String IuType= mInfo.getIUType();
                Ovd2Identity Moudleid =mInfo.getId();
                int col = Moudleid.getColumn();
                int row = Moudleid.getRow();
                String Input1R=mInfo.getInput1Resolution();
                InputStatus Input1S = mInfo.getInput1Status();
                String Input1SStr = Input1S.getValue();
                String Input2R = mInfo.getInput2Resolution();
                InputStatus Input2S = mInfo.getInput2Status();
                String Input2SStr = Input2S.getValue();
                
                Inputs input = mInfo.getInputActive();
                String inputStr = input.getValue();
                
                InputSelectionModes InputMode = mInfo.getInputMode();
                String InputModeStr = InputMode.getValue();
                
                Inputs InputSel = mInfo.getInputSelected();
                String InputSelStr = InputSel.getValue();
                
                
                LampPositions  LampActive= mInfo.getLampActive();
                String LampActiveStr = LampActive.getValue();
                
                
                
                //底灯 
                LampOperationStates bottomState = mInfo.getLampBottomOperationState();
                String bottomStateStr = bottomState.getValue();
                int LampBottomR = mInfo.getLampBottomRuntime();
                String LampBottomS = mInfo.getLampBottomSerialNumber();
                String LampDriver = mInfo.getLampDriver();
                LampModes lampmode = mInfo.getLampMode();
                String lampmodeStr = lampmode.getValue();
                //顶灯
                LampOperationStates LampTopState = mInfo.getLampTopOperationState();
                String LampTopStateStr = LampTopState.getValue();
                int lampTopR = mInfo.getLampTopRuntime();
                String lampTopSN = mInfo.getLampTopSerialNumber();
                
                
                String MoudleType = mInfo.getModuleType();
                PrjOperationStates OpState = mInfo.getOperationState();
                String OpStateStr = OpState.getValue();
                
                
                int puRTime = mInfo.getPURuntime();
                int PUTimeH = mInfo.getPURuntimeHotstandby();
                String PuSN = mInfo.getPUSerialNumber();
                InternalPatterns patten = mInfo.getPattern();
                String pattenStr =  patten.getValue();
                boolean peakFlag = mInfo.getWhitePeakingEnabled();
                String test = mInfo.getWall().toString();
                test = ";";
            }
        }
        

        
         //String test = "";
    
    */
}
